/*
 * @Description: 检索业务相关接口
 * @Author: Rfan
 * @Date: 2022-01-24 16:25:58
 * @LastEditTime: 2023-03-06 20:42:03
 */

import request from '@/utils/request';

// 通过单位ID查询全宗
export function submitAadvanceSearch(data) {
  return request({
    url: `/search-archives/advanced/`,
    method: 'post',
    data
  });
}
// 通过单位ID查询全文检索
export function submitFullTextSearch(data) {
  return request({
    url: `/search-archives/full-text/`,
    method: 'post',
    data
  });
}

// 通过单位ID查询条目检索
export function submitEntrySearch(data) {
  return request({
    url: `/search-archives/item/`,
    method: 'post',
    data
  });
}
// 通过单位ID查询图像检索
export function submitImageSearch(data) {
  return request({
    url: `/search-archives/image/search/`,
    method: 'post',
    data
  });
}
// 媒体锚点
export function mediaAnchor(data) {
  return request({
    url: `/search-archives/media/anchor`,
    method: 'post',
    data
  });
}
// 媒体锚点信息保存
export function mediaAnchorSave(data) {
  return request({
    url: `/search-archives/media/anchor/save`,
    method: 'post',
    data
  });
}
// 媒体信息检索
export function submitAudioTextSearch(data) {
  return request({
    url: `/search-archives/media/anchor/search`,
    method: 'post',
    data
  });
}
